package com.nebula.salary.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 工资数据传输类
 *
 * @author codex
 * @since 2022-02-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SalaryDto对象", description="工资数据传输类")
public class SalaryDto implements Serializable {
    private static final long serialVersionUID = -6778173348215376787L;
    
    @ApiModelProperty(value = "工资ID", position = 1)
    private Long salaryId;
    
    @ApiModelProperty(value = "工资", position = 2)
    private BigDecimal salary;
    
    @ApiModelProperty(value = "工资发放时间", position = 3)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate issueDate;
    
    @ApiModelProperty(value = "备注", position = 4)
    private String remark;
}
